//
//  Expense.m
//  iMoney
//
//  Created by VertigoSol on 9/11/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "Expense.h"

@implementation Expense
@synthesize note, ename, type, amount, date;


-(id)initAll: (NSDate*) ndate: (NSString*)nname: (NSString*)ntype: (float) namount
{
	if(self = [super init])
	{
		self.amount = namount;
		self.ename = [nname copy];
		self.type = [ntype copy];
		self.date = [ndate copy];
		self.note = @"";
	}
	
	return self;
}


-(BOOL) equals:(Expense*)e
{
	//TODO
	return NO;
}


-(void) dealloc
{
	[ename release];
	[type release];
	[note release];
	[date release];
	[super dealloc];
}


@end
